package com.football.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.football.springboot.entity.Game;
import com.football.springboot.entity.League;
import com.football.springboot.entity.Team;
import com.football.springboot.entity.TeamData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamDataMapper extends BaseMapper<TeamData> {
    //找到要更新的那行数据（球队赛季数据）
    TeamData getupdategamedata(@Param("team_id")Integer teamId, @Param("league_id")Integer leagueId,@Param("home_away")String homeAway);

    //查找全部球队赛季数据信息
    List<TeamData> getAllTeamData();

    //查找球队赛季数据的球队信息
    Team getteaminfo(@Param("team_id") Integer teamId);

    //查找球队赛季数据的联赛信息
    League getleagueinfo(@Param("league_id")Integer leagueId);


    //查找球队赛季客场数据

}
